package com.example.factory.absfactory.demo2.factory;

import com.example.factory.absfactory.demo2.product.Milk;

/**
 * 抽象工厂对应 具体生产牛奶的工厂
 * 属于内部的，不对用户开放
 * @author zhoubin
 * @date 2019-10-20 18:06:17
 */
public class MilkFactory extends  AbstractMilkFactory{

    @Override
    public Milk mengniuMilk(String price) {
        return new MengniuFactory().createMilk(price);
    }

    @Override
    public Milk telunsuMilk(String price) {
        return new TelunsuFactory().createMilk(price);
    }

    @Override
    public Milk sanluMilk(String price) {
        return new SanluFactory().createMilk(price);
    }

}
